package top.korori.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import top.korori.entity.SysMenu;
import top.korori.entity.vo.SysMenuVo;

import java.util.List;
import java.util.Set;

/**
 * 
 * 后台菜单表 Mapper 接口
 * 
 *
 * @author korori
 * @since
 */
@Mapper
public interface SysMenuMapper extends BaseMapper<SysMenu> {

    Set<String> getPermsByUserId(@Param("userId") Long userId);

    List<SysMenuVo> getByUserId(@Param("userId") Long userId);

    List<SysMenu> getMenuByRoleId(@Param("roleId") Long roleId);
}
